//
//  TFTempViewController.swift
//  weiboSina
//
//  Created by admin on 15/12/28.
//  Copyright © 2015年 admin. All rights reserved.
//

import UIKit

class TFTempViewController: UIViewController {
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        view.backgroundColor = UIColor(white: 0.97, alpha: 1.0)
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: "push")
        
        title = "当前是第\(navigationController?.childViewControllers.count ?? 0)级控制器"
    }
    
    @objc private func push(){
        let vc = TFTempViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
    

}
